<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

    <div class="table-responsive">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th class="text-center" width="30%">手机/邮箱/账号</th>
                <th class="text-center" width="8%">昵称</th>
                <th class="text-center" width="11%">申请时间</th>
                <th class="text-center" width="11%">提现时间</th>
                <th class="text-center" width="8%">审核人</th>
                <th class="text-center" width="9%">提现平台</th>
                <th class="text-center" width="5%">提现金额</th>
                <th class="text-center" width="5%">来源</th>
                <th class="text-center" width="10%">状态</th>
                <th class="text-center" width="5%">操作</th>
            </tr>
            </thead>
        </table>
        <div class="J_V_tabContent table-xScrollWrap">
            <table class="table table-bordered table-hover table-xs-content">
                <tbody>
                <tr class="jqgfirstrow" role="row">
                    <td role="gridcell" width="30%"></td>
                    <td role="gridcell" width="8%"></td>
                    <td role="gridcell" width="11%"></td>
                    <td role="gridcell" width="11%"></td>
                    <td role="gridcell" width="8%"></td>
                    <td role="gridcell" width="9%"></td>
                    <td role="gridcell" width="5%"></td>
                    <td role="gridcell" width="5%"></td>
                    <td role="gridcell" width="10%"></td>
                    <td role="gridcell" width="5%"></td>
                </tr>
                <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="cashRecord : ${dataMap['list']}" th:attr="data-id=${cashRecord['id']}" th:attrappend="data-status=${cashRecord['status']}">
                    <td class="text-center" >
                        <span th:if="${cashRecord['user']['mobile']}==null or ${cashRecord['user']['mobile']}==''">—/</span>
                        <span th:if="${cashRecord['user']['mobile']}!=null and ${cashRecord['user']['mobile']}!=''" th:text="${cashRecord['user']['mobile']}+'/'"></span>
                        <span th:if="${cashRecord['user']['email']}==null or ${cashRecord['user']['email']}==''">—/</span>
                        <span th:if="${cashRecord['user']['email']}!=null and ${cashRecord['user']['email']}!=''" th:text="${cashRecord['user']['email']}+'/'"></span>
                        <span th:if="${cashRecord['user']['loginAccount']}==null or ${cashRecord['user']['loginAccount']}==''">—</span>
                        <span th:if="${cashRecord['user']['loginAccount']}!=null" th:text="${cashRecord['user']['loginAccount']}"></span>
                    </td>
                    <td class="text-center">
                        <span th:if="${cashRecord['user']['nickname']}==null or ${cashRecord['user']['nickname']}==''">—</span>
                        <span th:if="${cashRecord['user']['nickname']}!=null" th:text="${cashRecord['user']['nickname']}"></span>
                    </td>
                    <td class="text-center" th:text="${cashRecord['createTime']}"></td>
                    <td class="text-center" th:id="'examine-time-'+${cashRecord['id']}" th:text="${#strings.isEmpty(cashRecord['examineTime'])}?'—':${cashRecord['examineTime']}"></td>
                    <td class="text-center" th:id="'user-name-'+${cashRecord['id']}" th:text="${cashRecord['examineUser']}==null?'—':${cashRecord['examineUser']['username']}">
                    </td>
                    <td class="text-center">
                        <th:block th:if="${cashRecord['accountType']}==1">个人支付宝账号</th:block>
                        <th:block th:if="${cashRecord['accountType']}==2">个人微信账号</th:block>
                    </td>
                    <td class="text-center">
                        <i class="fa fa-rmb"></i>
                        <th:block th:text="${cashRecord['price']}"></th:block>
                    </td>
                    <td class="text-center">
                        <th:block th:if="${#strings.isEmpty(cashRecord['sourceForm'])}">—</th:block>
                        <th:block th:if="${cashRecord['sourceForm']}=='PC'">PC</th:block>
                        <th:block th:if="${cashRecord['sourceForm']}=='MOBILE'">H5</th:block>
                    </td>
                    <td class="text-center" th:attrprepend="id='status-text-'+${cashRecord['id']}">
                        <span class="badge badge-warning vam" th:if="${cashRecord['status']}==1">审核中</span>
                        <span class="badge badge-primary vam" th:if="${cashRecord['status']}==2">已提现</span>
                        <span class="badge badge-danger vam" th:if="${cashRecord['status']}==3">未通过</span>
                        <a class="c-info ml5 vam show-reject-text" href="javascript:void(0);" th:if="${cashRecord['status']}==3">[原因]</a>
                        <div style="display: none;" th:text="${cashRecord['rejectText']}" th:if="${cashRecord['status']}==3"></div>
                    </td>
                    <td class="text-center" th:attrprepend="id='status-'+${cashRecord['id']}">
                        <a href="javascript:void(0);" th:if="${cashRecord['status']}==1" class="c-master fs14 ml5 adopt-btn" th:attrprepend="data-id=${cashRecord['id']}" data-toggle="tooltip" data-placement="bottom" data-original-title="审核通过">
                            <i class="fa fa-check"></i>
                        </a>
                        <a href="javascript:void(0);" th:if="${cashRecord['status']}==1" class="c-master fs14 ml5 reject-btn" th:attrprepend="data-id=${cashRecord['id']}" data-toggle="tooltip" data-placement="bottom" data-original-title="驳回申请">
                            <i class="fa fa-close"></i>
                        </a>
                        <th:block th:if="${cashRecord['status']} !=1">
                            —
                        </th:block>
                    </td>
                </tr>
                <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                    <td colspan="10" class="text-center">
                        <div class="noDataTipsBox">
                            <p><span class="c-4e fs16">亲，还没有提现申请数据~~~</span></p>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- 分页，开始 -->
        <div data-th-replace="layout/adminPage"></div>
        <!-- 分页，结束 -->
    </div>
</html>